package com.zp.drug.service;


import com.zp.common.myBatis.core.page.PageQuery;
import com.zp.common.myBatis.core.page.TableDataInfo;
import com.zp.drug.entity.bo.DrugClassDictBo;
import com.zp.drug.entity.vo.DrugClassDictVo;

import java.util.Collection;
import java.util.List;

/**
 * 药品功效类别字典Service接口
 *
 * @author zhang peng
 * @ date 2023-05-31
 */
public interface IDrugClassDictService {

    /**
     * 查询药品功效类别字典
     */
    DrugClassDictVo queryById (String id);

    /**
     * 查询药品功效类别字典列表(分页)
     */
    TableDataInfo<DrugClassDictVo> queryPageList (DrugClassDictBo bo, PageQuery pageQuery);

    /**
     * 查询药品功效类别字典列表(不分页)
     */
    List<DrugClassDictVo> queryList (DrugClassDictBo bo);

    /**
     * 修改药品功效类别字典
     */
    Boolean insertByBo (DrugClassDictBo bo);

    /**
     * 修改药品功效类别字典
     */
    Boolean updateByBo (DrugClassDictBo bo);

    /**
     * 校验并批量删除药品功效类别字典信息
     */
    Boolean deleteWithValidByIds (Collection<String> ids, Boolean isValid);
}
